import { defineStore } from 'pinia'
import { admin_information } from '../services/index'
export const useAdminStore = defineStore('adminStore', {
    state: () => {
        return {
            adminname: localStorage.getItem('adminname')||''
        }
    },
    actions: {
        // async loadData() {
        //     let result = await admin_information();
        //     console.log(result);
        // }
        setAdminname(adminname){
            this.adminname=adminname
        }
    }
})